
<script type="text/javascript" src="__PUBLIC__/js/jquery.validate.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/jQuery-jcDate.js"></script>
<script type="text/javascript" src="__PUBLIC__/layer/layer.js"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/form_v.css">

<style>
    input.error { border: 1px solid red; }
</style>
<script>
    $(function(){

        $("input.jcDate").jcDate({
            IcoClass : "jcDateIco",
            Event : "click",
            Speed : 100,
            Left : 0,
            Top : 28,
            format : "-",
            Timeout : 100
        });

        //步骤数
        $("input[name='step_num']").on('input',function(){

            var picExplain=parseInt($(this).val());
            var picCon='',giftCon='';

            for(var i=0;i<picExplain;i++){
                picCon+='<p><span class="reportTit">    </span><input type="text" class="inp" placeholder="请输入任务'+(i+1)+'要求..." name="step_claim'+(i+1)+'" id="img_remark'+(i+1)+'" title="请输入任务'+(i+1)+'要求" required></p>';
                giftCon+='<p><span class="reportTit">    </span><input type="text" class="inp" placeholder="请输入任务'+(i+1)+'奖励..." name="step_gift'+(i+1)+'" id="step_gift'+(i+1)+'" title="请输入任务'+(i+1)+'奖励" required></p>';

            }
            $('.stepMore').html(picCon+giftCon);

        })

        //体验攻略步骤数

        $("input[name='raiders_num']").on('input',function(){

            var picExplain=parseInt($(this).val());
            var raiders_explain='',raiders_picture = '';

            for(var i=0;i<picExplain;i++){
                raiders_explain+='<p><span class="reportTit">    </span><input type="text" class="inp" placeholder="请输入体验攻略'+(i+1)+'说明..." name="raiders_explain'+(i+1)+'" id="raiders_explain'+(i+1)+'" title="请输入体验攻略'+(i+1)+'说明" required></p>';
                raiders_picture+='<p><span class="reportTit">体验攻略'+(i+1)+'图片：</span><input type="file" class="inp" name="raiders_picture'+(i+1)+'" required title="请上传体验攻略'+(i+1)+'图片"></p>';

            }
            $('.raidersMore').html(raiders_explain+raiders_picture);

        })
    });

</script>
<h1 class="sysPageHead">
    <span class="sysPageDot"><img src="__PUBLIC__/images/sysListIcon3.png"><span class="textHide">.</span></span>
    游戏广告申报
</h1>

<div class="iotSysmCon" style="background:#fff">
    <!--  -->
    <form method="post" action="__ROOT__/index.php/Admin/Advertising/operate" enctype="multipart/form-data" id="addAdvertisingForm" class="cmxform">
        <div class="reportCon picRelate ">
            <div class="reportBody">
                <div class="reportList"><span class="reportTit">广告名称：</span><input type="text" class="inp" name="advertising_name" id="title" placeholder="输入广告名称" title="请输入广告名称" required></div>

                <!--<div class="reportList"><span class="reportTit">广告类型：</span>-->
                    <!--<select name="type" id="type" class="inp" required title="请选择广告类型" style="width: 810px">-->
                        <!--<option value="">请选择</option>-->
                        <!--<foreach name="ad_types" item="val" key="key">-->
                            <!--<option value="{$key}">{$val}</option>-->
                        <!--</foreach>-->
                    <!--</select>-->
                    <!--<label id="type-error" class="error" for="type"></label>-->
                <!--</div>-->

                <div class="reportList"><span class="reportTit">立即体验跳转地址：</span><input type="text" class="inp" name="jump_url" placeholder="请输入立即体验跳转地址" title="请输入立即体验跳转地址" required></div>

                <div class="reportList"><span class="reportTit">试玩规则：</span>
                    <textarea class="inp" name="rule" required placeholder="请输入试玩规则" title="请输入试玩规则"></textarea>&nbsp;<a href="javascript:void (0)">各条规则用@字符分隔</a>
                </div>

                <div class="reportList"><span class="reportTit">广告结算步骤数：</span><input type="text" class="inp" name="clearing_num" placeholder="请输入广告结算步骤数" title="请输入广告结算步骤数" required></div>
                <div class="reportList"><span class="reportTit">广告单价：</span><input type="text" class="inp" name="unit_price" placeholder="请输入广告单价" title="请输入广告单价" required></div>
                <div class="reportList"><span class="reportTit">广告总金额：</span><input type="text" class="inp" name="total_amount" placeholder="请输入广告总金额" title="请输入广告总金额" required></div>
                <div class="reportList"><span class="reportTit">广告消耗报警比例：</span><input type="text" class="inp" name="alarm_rate" placeholder="请输入广告消耗报警比例" title="请输入广告消耗报警比例" required></div>
                <div class="reportList"><span class="reportTit">转化率：</span><input type="text" class="inp" name="roi" placeholder="请输入ROI注册与投资转化率" title="请输入ROI注册与投资转化率" required></div>
                <div class="reportList"><span class="reportTit">特殊说明：</span><textarea class="inp" name="note" required placeholder="请输入特殊说明" title="请输入特殊说明"></textarea></div>

                <div class="reportList">
                    <span class="reportTit" >游戏背景图片：</span>
                    <input type="file" class="inp" name="game_background_picture" required title="游戏背景图片">
                </div>
                <div class="reportList">
                    <span class="reportTit">游戏名称：</span>
                    <input type="text" class="inp" name="game_name" placeholder="输入游戏名称" title="请输入游戏名称" required>
                </div>
                <div class="reportList">
                    <span class="reportTit">游戏类型：</span>
                    <input type="text" class="inp" name="game_type" placeholder="输入游戏类型" title="请输入游戏类型" required>
                </div>
                <div class="reportList">
                    <span class="reportTit">运营公司：</span>
                    <input type="text" class="inp" name="game_company" placeholder="输入运营公司" title="请输入运营公司" required>
                </div>
                <div class="reportList">
                    <span class="reportTit">奖励价值：</span>
                    <input type="text" class="inp" name="game_reward" placeholder="输入奖励价值" title="请输入奖励价值" required>
                </div>
                <div class="reportList">
                    <span class="reportTit">服区范围：</span>
                    <input type="text" class="inp" name="game_server" placeholder="输入服区范围" title="请输入服区范围" required>
                </div>

                <div class="reportList">
                    <span class="reportTit" >试玩步骤图片：</span>
                    <input type="file" class="inp" name="game_demo_picture" required title="试玩步骤图片">
                </div>

                <div class="reportList">
                    <span class="reportTit">体验活动：</span>
                    <input type="text" class="inp" name="game_experience_picture" placeholder="输入体验活动" title="请输入体验活动" required>&nbsp;<a href="javascript:void (0)">各条活动用@字符分隔</a>
                </div>

                <div class="reportList">
                    <span class="reportTit">累计总奖励：</span>
                    <input type="text" class="inp" name="game_count_reward" placeholder="输入累计总奖励" title="请输入累计总奖励" required>
                </div>
                <div class="reportList">
                    <span class="reportTit">上线时间：</span>
                    <input type="text" class="inp" name="game_begin_time" placeholder="输入上线时间" title="请输入上线时间" required>
                </div>
                <div class="reportList">
                    <span class="reportTit">截止时间：</span>
                    <input type="text" class="inp" name="game_end_time" placeholder="输入截止时间" title="请输入截止时间" required>
                </div>
                <div class="reportList">
                    <span class="reportTit">体验信息：</span>
                    <input type="text" class="inp" name="game_experience_info" placeholder="输入体验信息" title="请输入体验信息" required>
                </div>
                <div class="reportList">
                    <span class="reportTit">步骤数：</span>
                    <input type="text" class="inp" name="game_step" placeholder="输入步骤数" title="请输入步骤数" required>
                </div>
                <div class="reportList">
                    <span class="reportTit">等级：</span>
                    <input type="text" class="inp" name="game_grade" placeholder="输入等级" title="请输入等级" required>&nbsp;<a href="javascript:void (0)">各条活动用@字符分隔</a>
                </div>
                <div class="reportList">
                    <span class="reportTit">奖励：</span>
                    <input type="text" class="inp" name="game_gift" placeholder="输入奖励" title="请输入奖励" required>&nbsp;<a href="javascript:void (0)">各条活动用@字符分隔</a>
                </div>
                <div class="reportList">
                    <span class="reportTit">专区充值返利：</span>
                    <textarea class="inp" name="game_recharge_info" required placeholder="输入专区充值返利" title="输入专区充值返利"></textarea>&nbsp;<a href="javascript:void (0)">各条活动用@字符分隔</a>
                </div>
                <div class="reportList">
                    <span class="reportTit">返利说明：</span>
                    <textarea class="inp" name="game_recharge_explanation" required placeholder="输入返利说明" title="输入返利说明"></textarea>&nbsp;<a href="javascript:void (0)">各条活动用@字符分隔</a>
                </div>
                <div class="reportList">
                    <span class="reportTit">充值地址：</span>
                    <input type="text" class="inp" name="game_recharge_url" placeholder="输入充值地址" title="请输入充值地址" required>
                </div>
                <div class="reportList">
                    <span class="reportTit">游戏介绍：</span>
                    <input type="text" class="inp" name="game_introduction" placeholder="输入游戏介绍" title="请输入游戏介绍" required>
                </div>

                <div class="reportList">
                    <span class="reportTit" >游戏截图一张：</span>
                    <input type="file" class="inp" name="game_screenshot" required title="游戏截图一张">
                </div>

                <div class="reportList">
                    <span class="reportTit">付款方式：</span>
                    <input type="text" class="inp" name="game_payment_method" placeholder="输入付款方式" title="请输入付款方式" required>
                </div>

                <div class="reportList"><p class="subBtn" style="margin-top:15px;padding-left:155px"><input type="submit" value="提交" class="modifyBtn"></p></div>
            </div>
        </div>
    </form>
</div>


<script>
    $(function() {
        //验证表单
        $("#addAdvertisingForm").validate();
    });
</script>